package com.server.questionbank.snframe.service.UsersService.Impl;

import com.server.questionbank.snframe.domain.TInterest;
import com.server.questionbank.snframe.mapper.Course.TInterestMapper;
import com.server.questionbank.snframe.service.UsersService.TInterestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TInterestServiceImpl implements TInterestService {
    @Autowired
    private TInterestMapper tInterestMapper;

    // 获取用户加入的课程标签
    @Override
    public List<TInterest> getCourseTypeByJoinUserId(Long userId) {
        return tInterestMapper.getCourseTypeByJoinUserId(userId);
    }

    // 获取用户创建的课程标签
    @Override
    public List<TInterest> getCourseTypeByCreateUserId(Long userId) {
        return tInterestMapper.getCourseTypeByCreateUserId(userId);
    }

    // 获取用户收藏的课程标签
    @Override
    public List<TInterest> getCourseTypeByCollectUserId(Long userId) {
        return tInterestMapper.getCourseTypeByCollectUserId(userId);
    }

    // 获取用户加入的课程标签
    @Override
    public List<TInterest> getCourseLabelByJoinUserId(Long userId) {
        return tInterestMapper.getCourseLabelByJoinUserId(userId);
    }

    // 获取用户创建的课程标签
    @Override
    public List<TInterest> getCourseLabelByCreateUserId(Long userId) {
        return tInterestMapper.getCourseLabelByCreateUserId(userId);
    }

    // 获取用户收藏的课程标签
    @Override
    public List<TInterest> getCourseLabelByCollectUserId(Long userId) {
        return tInterestMapper.getCourseLabelByCollectUserId(userId);
    }
}
